<?php
/**
 * Row.php
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  Blog
 */

/** base class */
require_once 'Zend/Db/Table/Row/Abstract.php';

/**
 * Blog_Category_Row
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  Blog
 */
class Blog_Category_Row extends Zend_Db_Table_Row_Abstract 
{
    /**
     * overloaded getter
     *
     * @param string $what
     * @return mixed
     */
    public function __get($what) {
        if ($what == 'posts') {
            return $this->findManyToManyRowset('Blog_Post', 'Blog_PostCategory');
        } else {
            return parent::__get($what);
        }
    }
}